#pragma once
#include "Import.h"

using namespace TJs;

class CCamera2
{
public:
	CCamera2(void);
	~CCamera2(void);

	D3DXMATRIX& GetViewMatrix();
	D3DXMATRIX& GetProjMatrix();

	void Move(float aX, float aY, float aZ);
	void Rotate(const D3DXVECTOR3& aVAxis, float aFAngle);

	void Roll(float aAngle);
	void Yaw(float aAngle);
	void Pitch(float aAngle);

	void Update();

private:
	D3DXMATRIX		m_mxView;
	D3DXMATRIX		m_mxProj;

private:
	bool			m_bDirty;

private:
	D3DXQUATERNION	m_qOrientation;
	D3DXVECTOR3		m_vEye;

	float			m_fFOV;
	float			m_fNear;
	float			m_fFar;
	float			m_fAspect;
};
